package cn.dakaqi.services;

import cn.dakaqi.entities.GroupRecruit;
import cn.dakaqi.utils.exception.ServiceRuntimeException;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by chunyang on 2016/4/22.
 */
public interface GroupRecruitService
{
    void create(String param)throws ServiceRuntimeException;
    void save(GroupRecruit groupRecruit)throws ServiceRuntimeException;
    void update(GroupRecruit groupRecruit)throws ServiceRuntimeException;
    void updateStatus()throws ServiceRuntimeException;
    GroupRecruit findNotEnd(String groupCode)throws ServiceRuntimeException;
    GroupRecruit findOne(Long id)throws ServiceRuntimeException;
    List<GroupRecruit> findByGroup(Long groupId)throws ServiceRuntimeException;
    Page<GroupRecruit> findByVolunteer(String memberCode,int pageNumber)throws ServiceRuntimeException;
    List<GroupRecruit> findByGroupCode(String groupCode)throws ServiceRuntimeException;
    Page<GroupRecruit> findByGroupCode(String groupCode,int pageNubmer)throws ServiceRuntimeException;
    GroupRecruit findLastByGroupCode(String groupCode, int status)throws ServiceRuntimeException;
    List<GroupRecruit> findByServiceField(String createTime, String serviceField)throws ServiceRuntimeException;
    Page<GroupRecruit> findAll(String createTime, int pageNumber) throws ServiceRuntimeException;
    List<GroupRecruit> findTitleLike(String trim)throws ServiceRuntimeException;
    List<GroupRecruit> findByJobSkillSerivice(String tag) throws ServiceRuntimeException;

    Page<GroupRecruit> findByTitle(String groupCode,String key);
}
